package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 出库单详情
 *
 * @author yw
 * @date 2022-03-22 20:51:32
 **/
@Data
@TableName("outbound_order_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "出库单")
public class OutboundOrderDetail extends BaseModel<OutboundOrderDetail> {


    @ApiModelProperty(value = "出库单")
    private String outboundOrderCode;

    @ApiModelProperty(value = "货箱编号")
    private String boxCode;

    @ApiModelProperty(value = "货箱类型id")
    private String goodsBoxSpecId;

    @ApiModelProperty(value = "仓库编号")
    private String warehouseCode;

    @ApiModelProperty(value = "汇总时的所属仓库下的提货单ID")
    private String sourceId;

    @ApiModelProperty(value = "单据类型:\"CSRK\": \"铺货入库\", \"CGRK\": \"预售补货\"，“XSBH”：\"销售补货\", \"DBRK\": \"调拨入库\",\"DBCK\": \"调拨出库\", \"HSCK\": \"报损出库\", \"QXRK\": \"取消入库\", \"TDRK\": \"退单入库\", \"FHCK\": \"销售发货出库\"")
    private String dataType;

    @ApiModelProperty(value = "批次编号")
    private String batchCode;

    @ApiModelProperty(value = "销售单号")
    private String saleOrderCode;

    @ApiModelProperty(value = "商品编号")
    private String goodsCode;

    @ApiModelProperty(value = "原料编号")
    private String spuId;

    @ApiModelProperty(value = "sku编码")
    private String skuCode;

    @ApiModelProperty(value = "规格编码")
    private String specCode;
    @ApiModelProperty(value = "购买重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "购买数量")
    private Integer number;

    @ApiModelProperty(value = "购买数量")
    private String unit;

    @ApiModelProperty(value = "出库状态：0、待出库；1、出库中；2、已出库到位")
    private String status;

    @ApiModelProperty(value = "商品编码")
    @TableField(exist = false)
    private String spuCode;

}
